-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: String indexing against object dtype may raise AttributeError #14424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: String indexing against object dtype may raise AttributeError #14424
Conversation
Current coverage is 85.25% (diff: 100%)@@ master #14424 diff @@
==========================================
Files 140 140
Lines 50631 50632 +1
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 43167 43168 +1
Misses 7464 7464
Partials 0 0
|
@@ -2936,6 +2936,9 @@ def _wrap_joined_index(self, joined, other): | |||
name = self.name if self.name == other.name else None | |||
return Index(joined, name=name) | |||
|
|||
def _get_string_slice(self, key, use_lhs=True, use_rhs=True): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a docstring or comment explaining where this is overwritten / used ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, added the comment.
Small comment, looks good for the rest |
a1ebe40
to
ae22dce
Compare
@sinhrks Thanks! |
… may raise AttributeError (pandas-dev#14424) (cherry picked from commit 233d51d)
git diff upstream/master | flake8 --diff
String indexing may raise
AttributeError
, rather thanKeyError
.